package com.example.androidlearing2423.kotlin

//基本数据类型
//整数类型Byte(8位)、Shore(16)、int（32）、long(64)
//浮点型：Float(32)、double(64)
//字符型:Char(16位的Unicode码)
//布尔类型;Boolean

fun  main(){
    //ArkTs:变量let、常量const
    //Kotlin:变量是var、常量val
    val age = 18
    val height = 175.6f
    val blood = 'A'
    val isAdult = true
    var name = "XiaoMing"
    name = "Kotlin"

//数组
val  names = arrayOf("一","二","三","四","五")
val  scores = arrayOf("78","69","87","56","75")
    println("names size is ${names.size}")
    println("the second element is: ${name[1]}")
    val ages = intArrayOf(18,19,20,21,22)
}